package pl.druminski.robinhood.controller;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import pl.druminski.robinhood.model.Data;
import pl.druminski.robinhood.view.Gui;

/**
 * @author Łukasz Drumiński
 * 
 */
public class ALOptions implements ActionListener
{
    Data data;
    
    public ALOptions(Data data)
    {
        this.data = data;
    }

    public void actionPerformed(ActionEvent e)
    {
        Gui gui = new Gui(data);
        gui.chckBoxAutostart.addActionListener(new ALAutostart(data, gui));
        gui.btnAddProxy.addActionListener(new ALAddProxy(data, gui));
        gui.btnDeleteProxy.addActionListener(new ALDeleteProxy(data, gui));
        gui.btnSave.addActionListener(new ALSave(data, gui));
    }
}
